#! /usr/bin/python
# coding: UTF-8
__author__ = 'root'

class Sheduler(object):
    def __init__(self):
        self.workers = []

    def add(self,worker):
        self.workers.append(worker)

    def run(self):
        for w in self.workers:
            w.load()
            w.work()
        for w in self.workers:
            w.save()

class Worker(object):
    def __init__(self):
        self.desc = '描述worker的作用'

    def __repr__(self):
        return self.desc
    def load(self):
        pass

    def work(self):
        pass

    def save(self):
        pass
